package org.softmed.ATComm.swingClient;

import java.awt.Dimension;

import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class URLPanel extends JPanel {

	JTextField url = new JTextField();

	int numberWidth = 410;
	int numberHeight = 25;

	public URLPanel() {
		setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS));
		add(new JLabel("Address         :    "));

		url.setMaximumSize(new Dimension(numberWidth, numberHeight));
		url.setMinimumSize(new Dimension(numberWidth, numberHeight));
		url.setPreferredSize(new Dimension(numberWidth, numberHeight));

		add(url);
		add(Box.createHorizontalGlue());
	}

	public void setURL(String address) {
		url.setText(address);
	}

	public String getURL() {
		return url.getText();
	}

}
